package com.jc.common.util;

import org.apache.commons.lang3.StringUtils;

import com.alibaba.fastjson.JSONException;
import com.alibaba.fastjson.JSONObject;

public class JcStringUtil extends StringUtils {

	
	
	
	
	  public final static boolean isJSONValid(String test) {
	        try {
	            JSONObject.parseObject(test);
	        } catch (JSONException ex) {
	            try {
	                JSONObject.parseArray(test);
	            } catch (JSONException ex1) {
	                return false;
	            }
	        }
	        return true;
	    }
}
